Optimal. Leaf size=42 \[ -\frac {\cot (a+b x)}{2 b}-\frac {\cot ^3(a+b x)}{12 b}+\frac {\tan (a+b x)}{4 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {4373, 2700,
276} \begin {gather*} \frac {\tan (a+b x)}{4 b}-\frac {\cot ^3(a+b x)}{12 b}-\frac {\cot (a+b x)}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 276
Rule 2700
Rule 4373
Rubi steps
\begin {align*} \int \csc ^2(a+b x) \csc ^2(2 a+2 b x) \, dx &=\frac {1}{4} \int \csc ^4(a+b x) \sec ^2(a+b x) \, dx\\ &=\frac {\text {Subst}\left (\int \frac {\left (1+x^2\right )^2}{x^4} \, dx,x,\tan (a+b x)\right )}{4 b}\\ &=\frac {\text {Subst}\left (\int \left (1+\frac {1}{x^4}+\frac {2}{x^2}\right ) \, dx,x,\tan (a+b x)\right )}{4 b}\\ &=-\frac {\cot (a+b x)}{2 b}-\frac {\cot ^3(a+b x)}{12 b}+\frac {\tan (a+b x)}{4 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 48, normalized size = 1.14 \begin {gather*} -\frac {5 \cot (a+b x)}{12 b}-\frac {\cot (a+b x) \csc ^2(a+b x)}{12 b}+\frac {\tan (a+b x)}{4 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 51, normalized size = 1.21
method | result | size |
risch | \(\frac {4 i \left (2 \,{\mathrm e}^{2 i \left (x b +a \right )}-1\right )}{3 b \left ({\mathrm e}^{2 i \left (x b +a \right )}-1\right )^{3} \left ({\mathrm e}^{2 i \left (x b +a \right )}+1\right )}\) | \(46\) |
default | \(\frac {-\frac {1}{3 \sin \left (x b +a \right )^{3} \cos \left (x b +a \right )}+\frac {4}{3 \sin \left (x b +a \right ) \cos \left (x b +a \right )}-\frac {8 \cot \left (x b +a \right )}{3}}{4 b}\) | \(51\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 308 vs.
\(2 (36) = 72\).
time = 0.28, size = 308, normalized size = 7.33 \begin {gather*} \frac {4 \, {\left ({\left (2 \, \cos \left (2 \, b x + 2 \, a\right ) - 1\right )} \sin \left (8 \, b x + 8 \, a\right ) - 2 \, {\left (2 \, \cos \left (2 \, b x + 2 \, a\right ) - 1\right )} \sin \left (6 \, b x + 6 \, a\right ) - 2 \, \cos \left (8 \, b x + 8 \, a\right ) \sin \left (2 \, b x + 2 \, a\right ) + 4 \, \cos \left (6 \, b x + 6 \, a\right ) \sin \left (2 \, b x + 2 \, a\right )\right )}}{3 \, {\left (b \cos \left (8 \, b x + 8 \, a\right )^{2} + 4 \, b \cos \left (6 \, b x + 6 \, a\right )^{2} + 4 \, b \cos \left (2 \, b x + 2 \, a\right )^{2} + b \sin \left (8 \, b x + 8 \, a\right )^{2} + 4 \, b \sin \left (6 \, b x + 6 \, a\right )^{2} - 8 \, b \sin \left (6 \, b x + 6 \, a\right ) \sin \left (2 \, b x + 2 \, a\right ) + 4 \, b \sin \left (2 \, b x + 2 \, a\right )^{2} - 2 \, {\left (2 \, b \cos \left (6 \, b x + 6 \, a\right ) - 2 \, b \cos \left (2 \, b x + 2 \, a\right ) + b\right )} \cos \left (8 \, b x + 8 \, a\right ) - 4 \, {\left (2 \, b \cos \left (2 \, b x + 2 \, a\right ) - b\right )} \cos \left (6 \, b x + 6 \, a\right ) - 4 \, b \cos \left (2 \, b x + 2 \, a\right ) - 4 \, {\left (b \sin \left (6 \, b x + 6 \, a\right ) - b \sin \left (2 \, b x + 2 \, a\right )\right )} \sin \left (8 \, b x + 8 \, a\right ) + b\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.80, size = 54, normalized size = 1.29 \begin {gather*} -\frac {8 \, \cos \left (b x + a\right )^{4} - 12 \, \cos \left (b x + a\right )^{2} + 3}{12 \, {\left (b \cos \left (b x + a\right )^{3} - b \cos \left (b x + a\right )\right )} \sin \left (b x + a\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \csc ^{2}{\left (a + b x \right )} \csc ^{2}{\left (2 a + 2 b x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 35, normalized size = 0.83 \begin {gather*} -\frac {\frac {6 \, \tan \left (b x + a\right )^{2} + 1}{\tan \left (b x + a\right )^{3}} - 3 \, \tan \left (b x + a\right )}{12 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.14, size = 37, normalized size = 0.88 \begin {gather*} \frac {\mathrm {tan}\left (a+b\,x\right )}{4\,b}-\frac {\frac {{\mathrm {tan}\left (a+b\,x\right )}^2}{2}+\frac {1}{12}}{b\,{\mathrm {tan}\left (a+b\,x\right )}^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________